<?php
namespace app\index\listener;

class Open
{
    public function handle()
    {
        $ws = app('think\swoole\Websocket');
        $ws->emit('openMessage', ['fd'=> $ws->getSender()]);
    }   
}